package com.shy.bean;

import org.springframework.data.redis.core.index.Indexed;

public class Address {
    @Indexed
    private String county;

    @Indexed
    private String city;

    public Address(String county, String city) {
        this.county = county;
        this.city = city;
    }

    public String getCounty() {
        return county;
    }

    public void setCounty(String county) {
        this.county = county;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    @Override
    public String toString() {
        return "Address{" +
                "county='" + county + '\'' +
                ", city='" + city + '\'' +
                '}';
    }
}
